<template>
    <div>
        <h1>审核失败，请联系平台商</h1>
        <button @click="logout">注销</button>
    </div>
</template>

<script>
import { clearLoginInfo } from '@/utils'
export default {
    name:'review-faliure.vue',
    methods: {
        logout(){
            this.$http({
                url: this.$http.adornUrl('/sys/logout'),
                method: 'post',
                data: this.$http.adornData()
            }).then((res) =>{
                console.log(res)
                clearLoginInfo()
                this.$router.push({name:"login"})
            }).catch((err) =>console.log(err))
        //     this.$http({
        //     url: this.$http.adornUrl('/sys/logout'),
        //     method: 'post',
        //     data: this.$http.adornData()
        //   }).then(({data}) => {
        //     clearLoginInfo()
        //     this.$router.push({ name: 'login' })
        //   })
        // }).catch(() => {})
        }
    },
}
</script>